package com.aishang.shopback_2005.dao;

import com.aishang.shopback_2005.po.Product;
import com.aishang.shopback_2005.po.ProductExt;
import org.apache.ibatis.annotations.Insert;
import tk.mybatis.MyMapper;

import java.util.List;

public interface ProductMapper extends MyMapper<Product> {
    List<Product> getAll(ProductExt productExt);
    @Insert("insert into product values(default,#{pname},#{marketPrice},#{shopPrice},#{image},#{pdesc},#{isHot},#{pdate},#{csid})")
    void addProduct(Product product);
}